<template>
    <div id="top">
        <img src="../../static/img/logo.png">
        <img @click="searchClick"  src="../../static/icon/搜索分类.svg">
    </div>
</template>
<script>
export default {
    methods:{
        searchClick(){
            this.$store.commit("setSearchShow",true);
        }
    }
}
</script>
<style scoped>
    #top{
        width: 100%;
        height: 12.2vw;
        background-color: #FF3600;
        text-align: center;
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
    }
    img{
        height: 7.28vw;
        margin: 2.24vw;
    }
    #top  img:nth-of-type(2){
        position: absolute;
        right: 0;
        height: 8.4vw;
    }
</style>